package top.suven.base.oauth.dto.response;

import top.suven.base.util.createcode.DocDesc;

import java.io.Serializable;

/**
 * @ClassName: 认证数据传输返回对象
 * @Description:
 * @Author lixiangling
 * @Date 2018/5/15 18:04
 * @Copyright: (c) 2018 gc by https://www.gc.com.cn/
 * @Version : 1.0.0
 */
public class AuthorizeResponseDto implements Serializable {
    private static final long serialVersionUID = 6916373219958743589L;
    @DocDesc(desc = "用户编号")
    private long userId;
    @DocDesc(desc = "授权码超时时间")
    private int expiresIn;
    @DocDesc(desc = "SESSIONID")
    private String sessionId;//旧的校验方式
    @DocDesc(desc = "授权码")
    private String authCode;//授权码
    @DocDesc(desc = "令牌")
    private String accessToken;
    private String refreshToken;// 兼容旧项目

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public int getExpiresIn() {
        return expiresIn;
    }

    public void setExpiresIn(int expiresIn) {
        this.expiresIn = expiresIn;
    }

    public String getRefreshToken() {
        return refreshToken;
    }

    public void setRefreshToken(String refreshToken) {
        this.refreshToken = refreshToken;
    }

    public String getAuthCode() {
        return authCode;
    }

    public void setAuthCode(String authCode) {
        this.authCode = authCode;
    }
}
